package org.example.projecttwo.entity.dto.content.response;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@Schema(description = "收藏视图对象，包含收藏详情和关联内容信息")
public class CollectionVO {

    @Schema(description = "收藏ID")
    private Long id;

    @Schema(description = "用户ID")
    private Long userId;

    @Schema(description = "用户名")
    private String userName;

    @Schema(description = "内容类型：1-文章，2-新闻")
    private Integer contentType;

    @Schema(description = "内容类型名称")
    private String contentTypeName;

    @Schema(description = "内容ID（文章ID或新闻ID）")
    private Long contentId;

    @Schema(description = "内容标题")
    private String contentTitle;

    @Schema(description = "内容摘要")
    private String contentSummary;

    @Schema(description = "内容封面图片URL")
    private String contentCover;

    @Schema(description = "收藏备注")
    private String remark;

    @Schema(description = "收藏时间")
    private LocalDateTime createTime;

    @Schema(description = "内容创建时间")
    private LocalDateTime contentCreateTime;
}